using ContosoWorker;
using ContosoWorker.ScopedService;
using Microsoft.Extensions.DependencyInjection;

IHost host = Host.CreateDefaultBuilder(args)
    .ConfigureServices(services =>
    {
        // services.AddHostedService<Worker>(); 
        // services.AddHostedService<TimedHostedService>();
        services.AddHostedService<ConsumeScopedServiceHostedService>();
        services.AddHostedService<TimedHostedService>();
        services.AddScoped<IScopedProcessingService, ScopedProcessingService>();

       
    })
    .Build();

host.Run();
